<?php
$callback = htmlentities($_GET['callback']);
date_default_timezone_set("Asia/Shanghai");
$user = htmlentities($_GET['user']);
$face_id = (int)$_GET['face_id'];
include("config.php");
$Connect = new PDO('mysql:host='.$db['host'].';dbname='.$db['database'], $db['user'], $db['pass']);
$Connect->query("set names 'utf8'");
$sql = "delete from `face_user` where `user` = '".$user."' and `face_id` = '".$face_id."' limit 1";
if($Connect->query($sql)) {
	echo $callback."(1)";
} else {
	echo $callback."(0)";
}
?>